aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntEqualsTests]/[method:canGenerateCodeForIntEquals(org.shedlang.compiler.testing.snapshots.S...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-15 15:31:04 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-15 15:31:04 +0000
commit549ec911f67484c875a09d4b5b8a9a4fc0ecc806 (patch)
tree1940d5adcdb5db95712d8edcbd924cd436b21fb3 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntEqualsTests]/[method:canGenerateCodeForIntEquals(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parenta2d7af1fdcc64f117d5db91761cb2610854e9e60 (diff)
Store Patio ints as pointers
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntEqualsTests]/[method:canGenerateCodeForIntEquals(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntEqualsTests]/[method:canGenerateCodeForIntEquals(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected28
1 files changed, 24 insertions, 4 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntEqualsTests]/[method:canGenerateCodeForIntEquals(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntEqualsTests]/[method:canGenerateCodeForIntEquals(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
index 41ffd0ca..964c884b 100644
--- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntEqualsTests]/[method:canGenerateCodeForIntEquals(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntEqualsTests]/[method:canGenerateCodeForIntEquals(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -2,16 +2,36 @@ Compilation unit elements:
Locals:
+ * (val "binaryOpResult__0" int)
* (val "tmp__0" int)
- * (val "tmp__1" int)
+ * (val "intPointer__0" data-ptr)
+ * (val "intBinaryOpLeftValue__0" int)
+ * (val "intPointer__1" data-ptr)
+ * (val "intBinaryOpLeftValue__1" int)
Instructions:
(
- (int-eq (local "tmp__1") (local "b") (local "c"))
- (bool-to-int (local "tmp__0") (local "tmp__1"))
+ (int-to-data-ptr (local "intPointer__0") (local "b"))
+ (
+ memory-load
+ (local "intBinaryOpLeftValue__0")
+ pointer=(local "intPointer__0")
+ layout=(struct (int))
+ offset=(0)
+ )
+ (int-to-data-ptr (local "intPointer__1") (local "c"))
+ (
+ memory-load
+ (local "intBinaryOpLeftValue__1")
+ pointer=(local "intPointer__1")
+ layout=(struct (int))
+ offset=(0)
+ )
+ (int-eq (local "tmp__0") (local "intBinaryOpLeftValue__0") (local "intBinaryOpLeftValue__1"))
+ (bool-to-int (local "binaryOpResult__0") (local "tmp__0"))
)
Temporary stack:
- * PatioLocalRef[name=tmp__0]
+ * PatioLocalRef[name=binaryOpResult__0]
* PatioLocalRef[name=a]